//
//  NSDictionary+ZZZCategory.m
//  zjhealth
//
//  Created by 张润东 on 2017/11/30.
//  Copyright © 2017年 amu. All rights reserved.
//

#import "NSDictionary+ZZZCategory.h"

@implementation NSDictionary (ZZZCategory)

+ (NSDictionary *)getDictionnary:(NSDictionary *)dic{
    
    if ([dic isKindOfClass:[NSDictionary class]]) {
        return dic;
    }else{
        NSDictionary *tempDic = [[NSDictionary alloc]init];
        return tempDic;
    }
}

+ (NSMutableDictionary *)getMutableDictionnary:(NSDictionary *)dic {
    
    if ([dic isKindOfClass:[NSDictionary class]]) {
        
        return [[NSMutableDictionary alloc] initWithDictionary:dic];
        
    }else {
        
        NSMutableDictionary *tempDic = [[NSMutableDictionary alloc]init];
        return tempDic;
    }
}


@end
